<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			.a a{
				color: red;
			}
			
			.b a{
				color: gold;
			}
		</style>
	</head>
	<body>
		
		<div class="box">
			<div class="a">
				<ul>
					<li>
						<a href="#">标签1</a>
					</li>
				</ul>
			</div>
		</div>
		<div class="box">
			<div class="b">
				<ul>
					<li>
						<a href="#">标签2</a>
					</li>
				</ul>
			</div>
		</div>
		
		
	</body>
</html>